package com.cq.hd.app.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@RefreshScope
@Component
@Data
public class DynamicCommonConfig {

    public static String BUSINESS_ADMIN_URL;

    @Value("${business-admin-url}")
    public void setBusinessAdminUrl(String businessAdminUrl) {
        BUSINESS_ADMIN_URL = businessAdminUrl;
    }
}
